<!--
 * @Author: byron
 * @Date: 2021-10-07 09:37:19
 * @LastEditTime: 2021-10-07 09:46:34
-->
<template>
    <div class="n-button" @click="onclick">
        <slot></slot>
    </div>
</template>

<script>
export default {
    methods: {
        onclick() {
            console.log('button')
        },
    },
}
</script>
<style lang="scss" scoped>
.n-button {
    display: inline-block;
    padding: 5px 16px;
    border: 1px solid var(--button-border-color);
    border-radius: 2px;
    text-align: center;
    cursor: pointer;
    &:hover {
        background: var(--button-hover-bgcolor);
    }
}
</style>
